<template>
	<div>
		<el-tabs v-model="activeName">
			<el-tab-pane label="会员通知" name="user"> </el-tab-pane>
			<el-tab-pane label="商户通知" name="supplier"> </el-tab-pane>
		</el-tabs>

		<!--会员通知-->
		<Message v-if="activeName == 'user'" :message_to="10"></Message>
		<!--商户通知-->
		<Message v-if="activeName == 'supplier'" :message_to="30"></Message>
	</div>
</template>
<script>
import Message from './Message.vue';
export default {
	components: {
		/*编辑组件*/
		Message,
	},
	data() {
		return {
			form: {
				status: 0,
			},
			/*参数*/
			message_to: 10,
			/*当前选中*/
			activeName: 'user',
		};
	},
	created() {
		if (this.$route.query.type != null) {
			this.activeName = this.$route.query.type;
		}
	},
	methods: {},
};
</script>